import { HashRouter, Route } from 'react-keeper'
import { Component } from 'react';
import { render } from 'react-dom';
import { isDev } from 'variables';
import PageHome from 'pages/home/';

import DB from 'db';
import './app.less';
import './ding';

import { Toast ,Modal} from 'antd-mobile';


if (isDev && window.chrome && window.chrome.webstore) { // This is a Chrome only hack
                                                        // see https://github.com/livereload/livereload-extensions/issues/26
    setInterval(() => {
        document.body.focus();
    }, 200);
}


render(
    <HashRouter>
        <div>
            <PageHome.route/>
        </div>
    </HashRouter>,
    document.getElementById('App')
);
